import React from 'react';
import {
    HomeOutlined,
    PictureOutlined,
    UploadOutlined,
    ProfileOutlined,
    FilterOutlined,
    OrderedListOutlined,
    TeamOutlined,
    HistoryOutlined,
    GiftFilled,
    AudioFilled,
    CustomerServiceFilled,
    PlaySquareOutlined,
    SoundOutlined,
} from '@ant-design/icons';

import {
    Home,
    Search,
    SearchDetails,
    Recommend,
    RecommendDay,
    RecommendDj,
    RecommendDjDetail,
    RecommendNew,
    RecommendNewSong,
    RecommendDisc,
    RecommendMV,
    RecommendMVList,
    Recent,
    RecentAlbum,
    RecentSong,
    RecentSonglist,
    RecentVideo,
    UserAllList,
    UserPlayList,
    UserLikesSongs,
    UserLikesSongsDetails,
    LocationWeather,
    Banner,
    BannerList,
    BannerAdd,
    Pro,
    ProList,
    Chart,
    ChartDetails,
    Plugins,
    BaiduMap,
    Editor,
    MD
} from '@/routers/config'
const menus = [
    {
        label: '首页',
        key: '/',
        icon: <HomeOutlined />,
        element: <Home />
    },
    {
        label: '搜索相关',
        key: '/search',
        icon: <UploadOutlined />,
        element: <Search />,
        children: [
            {
                index: 1,
                label: '搜索详情',
                key: '/search/details',
                icon: <PictureOutlined />,
                element: <SearchDetails />
            }
        ]
    },
    {
        label: '推荐相关',
        key: '/recommend',
        icon: <ProfileOutlined />,
        element: <Recommend />,
        children: [
            {
                index: 1,
                label: '每日推荐',
                key: '/recommend/day',
                icon: <OrderedListOutlined />,
                element: <RecommendDay />,
            },
            {
                index: 1,
                label: '推荐电台',
                key: '/recommend/dj',
                icon: <OrderedListOutlined />,
                element: <RecommendDj />,
                children: [
                    {
                        index: 1,
                        label: '电台节目详情',
                        key: '/recommend/dj/detail/:id',
                        element: <RecommendDjDetail />,
                    },
                ]
            },

            {
                label: '推荐新音乐',
                key: '/recommend/new',
                icon: <FilterOutlined />,
                element: <RecommendNew />,
                children: [
                    {
                        label: '推荐新音乐列表',
                        key: '/recommend/new/song',
                        icon: <FilterOutlined />,
                        element: <RecommendNewSong />,
                    },
                    {
                        label: '推荐新碟片列表',
                        key: '/recommend/new/disc',
                        icon: <FilterOutlined />,
                        element: <RecommendDisc />,
                    }]
            },
            {
                label: '推荐MV',
                key: '/recommend/mv',
                icon: <FilterOutlined />,
                element: <RecommendMV />,
                children: [
                    {
                        label: '推荐MV列表',
                        key: '/recommend/mv/list',
                        icon: <FilterOutlined />,
                        element: <RecommendMVList />,
                    },
                   
                ]
            },
        ]
    },
    {
        label: '最近播放',
        key: '/recent',
        icon: <HistoryOutlined />,
        element: <Recent />,
        children: [
            {
                index: 1,
                label: '歌曲',
                key: '/recent/song',
                icon: <CustomerServiceFilled />,
                element: <RecentSong />,
            },
            {
                index: 1,
                label: '视频',
                key: '/recent/video',
                icon: <PlaySquareOutlined />,
                element: <RecentVideo />,
            },
            {
                label: '歌单',
                key: '/recent/songlist',
                icon: <ProfileOutlined />,
                element: <RecentSonglist />,
            },
            {
                label: '专辑',
                key: '/recent/album',
                icon: <ProfileOutlined />,
                element: <RecentAlbum />,
            },
        ]
    },
    {
        label: '用户歌单',
        key: '/useralllist',
        icon: <TeamOutlined />,
        element: <UserAllList />,
        children: [
            {
                label: '用户歌单列表',
                key: '/useralllist/userplaylist',
                icon: <TeamOutlined />,
                element: <UserPlayList />,
            },
            {
                label: '我喜欢的音乐',
                key: '/useralllist/userlikessongs',
                icon: <TeamOutlined />,
                element: <UserLikesSongs />,
            },
            {
                label: '音乐详情',
                key: '/useralllist/userlikessongs/details/:id',
                icon: <TeamOutlined />,
                element: <UserLikesSongsDetails />,
            },
            {
                label: '当地天气',
                key: '/useralllist/LocationWeather',
                icon: <TeamOutlined/>,
                element: <LocationWeather/>
            }
        ]
    },
    {
        label: '轮播图管理',
        key: '/banner',
        icon: <TeamOutlined />,
        element: <Banner />,
        children: [
            {
                label: '轮播图列表',
                key: '/banner/list',
                icon: <TeamOutlined />,
                element: <BannerList />,
            },
            {
                label: '轮播图添加',
                key: '/banner/add',
                icon: <TeamOutlined />,
                element: <BannerAdd />,
            },
        ]
    },
    {
        label: '产品管理',
        key: '/pro',
        icon: <GiftFilled />,
        element: <Pro />,
        children: [
            {
                label: '产品列表',
                key: '/pro/list',
                icon: <OrderedListOutlined />,
                element: <ProList />,
            },
        ]
    },
    {
        label: '图表展示',
        key: '/chart',
        icon: <TeamOutlined />,
        element: <Chart />,
        children: [
            {
                label: '图表详情',
                key: '/chart/details',
                icon: <TeamOutlined />,
                element: <ChartDetails />,
            },
        ]
    },
    {
        label: '三方插件',
        key: '/plugins',
        icon: <TeamOutlined />,
        element: <Plugins />,
        children: [
            {
                label: '百度地图',
                key: '/plugins/map',
                icon: <TeamOutlined />,
                element: <BaiduMap />,
            },
            {
                label: '富文本编辑器',
                key: '/plugins/editor',
                icon: <TeamOutlined />,
                element: <Editor />,
            },
            {
                label: 'MD编辑器',
                key: '/plugins/md',
                icon: <TeamOutlined />,
                element: <MD />,
            },
        ]
    }
    






]

export default menus;